package com.zlm.reflect;

import com.zlm.custom.spring.sub.Dog;

/**
 * @author zlm
 * @date 2025/4/27
 */
public class TestClass {

    public static void main(String[] args) throws Exception {
        Class<Student> studentClass = Student.class;
        //全类名
        System.out.println(studentClass.getName());
        //简单类名
        System.out.println(studentClass.getSimpleName());

        Class<?> aClass = Class.forName("com.zlm.reflect.Student");
        System.out.println(aClass.getName());
        System.out.println(aClass.getSimpleName());
    }
}
